Repository navigation
Add Python 2.1 API coverage and fix request handling - #63
Draft
kkimhannah wants to merge 2 commits into
Draft
kkimhannah wants to merge 2 commits into
kkimhannah wants to merge 2 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Document and template updates could silently discard their PUT form bodies, and several SDK methods returned HTTP error payloads as successful results. This update fixes request handling and adds dedicated methods for the current Mifiel API.
Document.get_state(),add_stakeholder(),update_stakeholder(),delete_stakeholder()andsave_zip(), plusQuery.execute(client, params)at/api/querywith pagination metadata preserved.requests.HTTPErrorfor failed requests, close failed uploads and omit duplicate local-path form fields. Preserve original XML download bytes.Validation: 82 tests pass on Python 3.10, 3.11, 3.12, 3.13 and 3.14 with locked dependencies; 93% total coverage. Poetry metadata/lock validation, source and wheel builds, clean-wheel import/version checks and diff checks pass. All new modules/tests pass Ruff; repository-wide Ruff retains 54 legacy findings (56 at baseline), and existing deprecation warnings remain.
Authenticated sandbox checks passed for advanced queries, document creation/state, reviewer creation/update/deletion and webhook listing. Signed ZIP/PDF/XML downloads passed archive/XML/header checks; both ZIP members match direct downloads byte for byte. Stakeholder deletion returned 205 with state retained as deleted. Only this run's disposable document was cleaned up; the retained signed test document was preserved.
Webhook creation/callback delivery and live legacy template generation were not exercised. This draft does not merge or publish a release.
API usage examples are maintained centrally at docs.mifiel.com; this PR adds no separate repository usage examples.